//
//  ViewController.m
//  测试demo
//
//  Created by mac on 2016/12/3.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ViewController.h"
#import "GBAlertView.h"
#import "ToViewTest.h"

#define GBScreenH [UIScreen mainScreen].bounds.size.height
#define GBScreenW [UIScreen mainScreen].bounds.size.width
@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
   
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = CGRectMake(60, 60, 60, 60);
    btn.backgroundColor = [UIColor redColor];
    [btn addTarget:self action:@selector(btn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}

#pragma mark -- 测试 GBTopScrollMenuView

- (void)btn{

    NSArray *titles = @[@"呼叫",@"添加到手机通讯录",@[@{@"title":@"使用微信电话本"},@{@"value":@"高清免费通话,通话中拍照"}]];
    
    [GBAlertView showWithtTtles:titles itemIndex:^(NSInteger itemIndex) {
        
        NSLog(@"%ld",itemIndex);
    }];
//    ToViewTest *view  = [[ToViewTest alloc] initWithFrame:CGRectMake(50, 150, 200,200)];
//    [self.view addSubview:view];
}
@end
